package com.example.demo3;

import com.example.demo3.others.UserController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Demo3Application {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(Demo3Application.class, args);
		UserController bean = context.getBean(UserController.class);
		bean.say();
	}

}
